import {GETMOVIELIST} from "../constant/movie"
const init = {
    movieList : []
}


export default function movieReducer (preState = init, action) {
    const {type,data} = action
    switch(type){
        case GETMOVIELIST:
            return {
                ...preState,
                movieList: data
              }
    }
    return preState
}